home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / Mac OS USB DDK / Mac OS USB DDK 1.4.1 / Examples / USBSampleStorageDriver / UnitTableDriver / USB_DriverDescription.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-25  |  1.5 KB  |  47 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        USB_DriverDescription.c
  3.  
  4.     Contains:    The require DriverDescription structure for 'ndrv's
  5.  
  6.     Version:    1.0
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #include "NativeDriverDesciption.h"
  12. #include "StorageDeviceConfiguration.h"
  13. #include "USB_Version.h"
  14.  
  15. //----------------------------------------------------------------------------------
  16. //    The Driver Description structure -
  17. //     This structure provides the Device Manager with information about our native driver
  18. //----------------------------------------------------------------------------------
  19. DriverDescription TheDriverDescription = 
  20. {
  21.     kTheDescriptionSignature,
  22.     kInitialDriverDescriptor,
  23.  
  24.     // DriverType
  25.     kDriverNameString,
  26.     kStorageHexMajorVers, kStorageHexMinorVers, kStorageReleaseStage, kStorageCurrentRelease,
  27.  
  28.     // DriverOSRuntimeInfo
  29.     0
  30.     | (1 * kDriverIsLoadedUponDiscovery)    //    Loader runtime options
  31.     | (1 * kDriverIsOpenedUponLoad)            //    Opened when loaded
  32.     | (0 * kDriverIsUnderExpertControl)        //    No I/O expert to handle loads/opens
  33.     | (0 * kDriverIsConcurrent)                //    Not concurrent yet
  34.     | (0 * kDriverQueuesIOPB),                //    Not internally queued yet
  35.     kDriverNameString,                        //    Str31 driverName (OpenDriver param)
  36.     0, 0, 0, 0, 0, 0, 0, 0,                    //    UInt32 driverDescReserved[8]
  37.  
  38.     // DriverOSService
  39.     1,                                        //    Service Count
  40.  
  41.     // DriverServiceInfo
  42.     kServiceCategoryNdrvDriver,                //    OSType serviceCategory
  43.     kNdrvTypeIsGeneric,                        //    OSType serviceType
  44.     1, 0, finalStage, 0                        //     Service version number
  45. };
  46.  
  47.